import mysql.connector

conn = mysql.connector.connect(host='127.0.0.1', port='3306', database='spider', user='root', password='123456',
							   use_unicode=True)
c = conn.cursor()
c.execute('''INSERT INTO `spider`.`fenghuang_new` (`title`, `url`, `time`) VALUES ('阿萨德', 'as', 'asdfsa');''')

conn.commit()
c.close()
conn.close()
